home *** CD-ROM | disk | FTP | other *** search
- System: ntp version 3.4
- Patch #: 11
- Priority:
- From:
-
- Description:
- Stupid typo - dereferenced unused variable in select_clock(). This caused
- heartburn on Suns, which don't have address 0 mapped into their address
- space. Please apply this patch or grab a new tar file.
-
-
- Repeat-By:
-
- Fix: From rn, say "| patch -p -N -d DIR", where DIR is your ntp source
- directory. Outside of rn, say "cd DIR; patch -p -N <thisarticle".
- If you don't have the patch program, apply the following by hand,
- or get patch (version 2.0, latest patchlevel).
-
- After patching:
- make depend
- make
- make install
-
- If patch indicates that patchlevel is the wrong version, you may need
- to apply one or more previous patches, or the patch may already
- have been applied. See the patchlevel.h file to find out what has or
- has not been applied. In any event, don't continue with the patch.
-
- If you are missing previous patches they can be obtained from me:
-
- Louis A. Mamakos
- louie@trantor.umd.edu
-
- You can also get the patches via anonymous FTP from
- trantor.umd.edu.
-
- Index: patchlevel.h
- Prereq: 10
- 1c1
- < #define PATCHLEVEL 10
- ---
- > #define PATCHLEVEL 11
-
- Index: ntp_proto.c
- *** ntp_proto.c.old Wed May 3 19:03:45 1989
- --- ntp_proto.c Wed May 3 19:03:54 1989
- ***************
- *** 1,5 ****
- #ifndef lint
- ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp_proto.c,v $ $Revision: 3.4.1.9 $ $Date: 89/05/03 15:13:25 $";
- #endif
-
- /*
- --- 1,5 ----
- #ifndef lint
- ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp_proto.c,v $ $Revision: 3.4.1.10 $ $Date: 89/05/03 19:03:02 $";
- #endif
-
- /*
- ***************
- *** 11,16 ****
- --- 11,19 ----
-
- /*
- * $Log: ntp_proto.c,v $
- + * Revision 3.4.1.10 89/05/03 19:03:02 louie
- + * Stupid typo - dereferenced unused variable in select_clock()
- + *
- * Revision 3.4.1.9 89/05/03 15:13:25 louie
- * Add code to count number of peer switches and inhibited peer switches. Clock
- * selection code has been updated to reflect 21 April 1989 draft of NTP spec.
- ***************
- *** 978,986 ****
- sel_lst[i].distance = dispersion;
-
- precision_thres = NTP_MAXSKW + 1.0/(1<<-sys.precision);
- ! if (peer->precision < 0 &&
- ! -peer->precision < sizeof(long)*NBBY)
- ! precision_thres += 1.0/(1<<-peer->precision);
-
- sel_lst[i].precision = precision_thres;
-
- --- 981,990 ----
- sel_lst[i].distance = dispersion;
-
- precision_thres = NTP_MAXSKW + 1.0/(1<<-sys.precision);
- ! if (sel_lst[i].peer->precision < 0 &&
- ! -sel_lst[i].peer->precision < sizeof(long)*NBBY)
- ! precision_thres +=
- ! 1.0/(1<<-sel_lst[i].peer->precision);
-
- sel_lst[i].precision = precision_thres;
-
-